Revert "compare before write"

This reverts commit 1f5d874e3abdc1bedb442f2c06027f613786ec6c.