Reduce the number of writes to improve test performance