Can't memoize methods on frozen objects

This seems like it would be fairly straightforward to solve by initializing the necessary ivars when the class is initialized instead of waiting until a method is called.