Remove unneeded writes