A new large-scale study links smoking and cardiovascular disease to an increased risk of developing dementia. Smoking and cardiovascular disease impact memory and learning throughout adulthood, starting at age 18. Researchers say smoking has the biggest impact on cognitive function in women, while cardiovascular disease has a more detrimental impact on cognition in men.