Use single atomically when setting a value