Fix issue with cache file creation