Matthew Walker, research psychologist at UC Berkeley, likens the brain to an e-mail inbox. After you’ve been awake for a while, your inbox is full; until you empty it, incoming messages will bounce, unreceived. Sleep empties your mental inbox. The process of consolidation in sleep is like moving the important items from your email into a folder. For the brain, that folder is long-term memory.