I was toying with suggesting that, but I think it would be annoying if even trivial changes (like writing comments) invalidated your cache. Though maybe we could use ASTs to generate a canonical hash of the code that ignores comments, line numbers, etc.