It turns out the optimal amount of glucocorticoids, something that is moderately stressful, in other words, something stimulating, does great stuff to your hippocampus. It increases blood delivery there, glucose, oxygen, and makes the synapses, the connections between neurons, more excitable ... A little bit of arousal and alertness is a good thing for learning and memory.