A number of studies have been performed on the relationship between various foods and the onset of dementia. One showed that walnuts can improve cognitive function. Another that blueberries can boost memory. And fish oil supplements can lower your risk of developing Alzheimer’s disease. The Mediterranean diet and the MIND diet—both of which encourage you to eat lots of fresh produce, legumes, nuts, fish, whole grains and olive oil have been shown in multiple studies to provide protection against cognitive declines. And they can be delicious if prepared with lots of fresh spices.