Optimizations made to reduce work on GC.