A major new study suggests that what you eat in midlife could play a decisive role in how well your brain ages.