Updated names
Hardened cache

Updated cache method to write out to a temporary file then rename it to the appropriate cache file.

Updated read_cache method to glob the appropriate cache files.