[1] https://en.wikipedia.org/wiki/Solomon_Shereshevsky
He had synesthesia that made him unable to forget things for most of the life. His memory was so good he was able to recite ten and more (10+) years old dialogues word-for-word, some of those included remembering and reciting long arbitrary numbers. How so? Because almost everything he saw, heard or read was fascinating in its' own unique way.
(Shereshevsky had to learn how to forget things at later years of his life, successfully)
I do not have synesthesia, yet I've found that if I have any sort of strong feeling - direct, or through association, - about any subject, I remember everything about that subject better. Also, these strong feelings allow me to find analogues relatively easier, enriching my reasoning.
Richard Feynman described something like this in his autobiographies: when mathematicians told him to imagine two spheres, he imagined one as orange and the other one as hairy (or something like that). This way he was able to discover non-constructiveness of proofs, as non-constructive proofs have less use in physics.
So, in my experience, one can use (or learn to use) rich feelings about many things to make memory better and to find better solutions to problems faster.