A March 2021 study (of rats) by the University of Southern California, UCLA and the University of Georgia found, 

"Early life sugar consumption seems to selectively impair … hippocampal learning and memory," 

"It was surprising to us that we were able to essentially replicate the memory impairments associated with sugar consumption not by transferring the whole microbiome, but simply by enriching a single bacterial population in the gut,"