substrate: share file_cache_dir as much as possible