A 16-year study followed nearly 800 people to find that those with higher vitamin D levels in their 30s and 40s had lower tau protein levels later in life. Tau protein buildup is a key marker linked to dementia.