We need to ensure that write key is atomic