Prevents duplicate writes