Correct cache file path for main class