_cache_dir can now be static