Cache calls to define_attribute_methods