good point. if the flash device is doing ECC on the data being stored my suggestions are harder to implement if still possible.
it will depend on the level and type of the ECC, if an algorithm is in place on a per-byte level that lets the ECC bits be '1's when the data is all '1's then you could still do per-byte modifications