Fixed caching of geometryFactories