Use atomic cache file creation. See #31.