Revert "Revert "GC triggering performance optimizations""

This reverts commit 260821a011a820bd2d061ddf51fa42a817171225.