Put the `getresources` code to this property, and make the property a `cached_property`. This avoids unnecessarily recompution and removes certain logic from the initialization part.