Yes, I read that there is a link between proton pump inhibitors and an increased risk of dementia after 4.5 years of use. However, I think the study was done on an older age group, which would tend to skew the results.
I heard it causes GI bleeding. Tell my doctor I did not want to take it since I have a history of bleeding with colitis.