Made us only call index write when there are actual index write ops.