AX: memoize expensive computation during blocks where tree doesn't change