A `@cached_property` implementation.