Replaced caching of a property with @cached_property.