optimize time-average processing