We now use a spatial index on generated layers.