added the function load_cache