Add atomic write for the shared storage file to prevent race conditions. Write to a temp file with restricted permissions and atomically rename. Apply 600 permissions to the final storage file when possible
Add atomic write for the shared storage file to prevent race conditions. Write to a temp file with restricted permissions and atomically rename. Apply 600 permissions to the final storage file when possible