Atomically update waas cache file