Revert "Revert "GC triggering performance optimizations""

This reverts commit 86c3295faf681660b8fb3c59b9487c54a4106b9c.