Cognition is linked to more than just brain health.