Optimization to fetching vertex and vertex count from geometries.