Simulate deleting ways after iteration for compatibilty.
Add index on id for lookup speed. Still not as fast as before, sadly.