Dementia isn't a disease that suddenly appears. Risk factors for dementia begin to accumulate gradually, starting in your mid-40s.
The period after age 45 is a crucial "golden time" for maintaining cognitive reserve and the "best time to maintain brain health."
By taking good care of yourself now, you significantly increase your chances of preventing or delaying dementia.