Refactored cache method to a CacheTrait file