optimize invoice rendering with lots of CDRs, RT#15155