Refactored the storage of a temporary version of the local cache into
its own method.