Memoization! Moar memoization!

Kinda fix #69