Certain foods may reduce risk of developing dementia