Sparse representations and fast algorithms for Kohn-Sham orbitals