clean up cached_get_file_info a little