Since sleep both before and after learning is essential for learning and memory, it stands to reason that chronic sleep deprivation may play a role in contributing to cognitive decline and dementia. As we age, our sleep quality often tends to deteriorate.