If you need the totals for validation purposes, create intermediate subtotals within the transaction list. This will significantly reduce the calculation load
Related to Rule:5.07-09 Avoid using a Top Level for large lists of transaction data