This isn't an answer to your question, but I have recently thought that a IDE/editor plugin to manually 'tag' lines/sections of code with a comment would be useful when starting with a new codebase, rather than having to remember everything. That said, I don't know how much that would negatively impact the end goal of internalising these things.