Stress is a singularly destructive factor to clear cognition, so lowering stress is important. See this briefing from the Society for Neuroscience for a discussion of the effects.
Dietary choices, lifestyle choices and exercise are all major factors in the body's stress level.