Reduce total heap usage from 70GB to 4GB and added initial block minimization.