Add geometry pooling to try and reduce memory leakage.