Revert "Revert "GC triggering performance optimizations""

This reverts commit 5ab69bef28e42179cf5ff7ca63fed25179275d1d.