Heap print optimizations