Reduced size of AET when inner loops are involved in calculation