cache classes workaround