This is a question of fluid intelligence versus crystallized intelligence.
Fluid intelligence is the ability to reason and solve novel problems. It reduces with age. On the other hand, crystallized intelligence is the ability to use experience, skills and knowledge to solve problems. It increases with age.
In the current scenario, Gary's crystallized experience is fully intact given his age, experience and knowledge.