ResourceSystem: Always respect the cacheGroups argument when caching materials