Fix optimizing for writes.