Can't memoize methods on frozen objects

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