Prototype memoize decorator from the Bart ride home