Kohn-Sham calculations with the exact functional