Update optimization. No need to write to the __update_index table if the update did not change any indexes