hm_save_cache function

Save route and SID/STAR cache to file