closing of local store: remove the sync (close should be enough)
compress in tmp file & rename.