One way exercise may preserve brain function: endurance exercise increases FNDC5/irisin which increases brain-derived neurotrophic factor expression.

Link. Exercise effect on brain function is weirdest medical discovery of past 15y.