Calculate transforms without using the heap.