Added check and creation of cached_files folder