I won't dismiss that a lot of things can happen during sleep that will help you do better in the morning, but a lot of the time I think this kind of thing boils down to performance falling off as you get tired, to the point of eventually negating improvements you make. It doesn't help if you've figured out how to do something if you're tired to execute on it.