A new study suggests that sleeping soundly when you are young may help preserve your cognitive abilities when you are older. Moreover, once we reach middle age, taking afternoon naps can also help improve one's memory and guard it against deterioration.