Beyond cancer and neurodegeneration (both useful, but not cognitive enhancement per se), fasting has brain chemical shifts that can boost mental performance. One called brain-derived neurotrophic factor (BDNF) is associated with increased synaptic plasticity and neurogenesis.