There is a strong correlation (noting my word choice here before the incorrectors accuse me of confusing it with causation) between general anesthesia and onset of dementia. I’m not going to dig it up, but it is easy enough to find on pubmed. There is a decent amount of noticing in the literature.