We often utilise the "customer statement" function to calculate things such as "total customers order value", "number of customers previous orders" and "is it a customers first order?".
The function was not designed for this purpose, and therefore is slow and not a practical solution for many applications, especially when running recursively on multiple document print outs.
Having some customer fields available in a higher level scope for the above would be fantastic.