Long-term memory loss, difficulty understanding verbal or written communication or impaired ability to pay attention may still occur five years after heart surgery if a patient has a certain gene variation, according to a study. This gene was found to be related to a decline in cognitive capabilities compared to those who do not have the variation.