Time outside of therapeutic range in atrial fibrillation patients is associated with long-term risk of dementia.