For queries involving physical files or tables with read triggers, group by triggers will always involve a temporary file before the group by processing, and will therefore slow down these queries.
The query will run faster is the read trigger is removed (RMVPFTRG TRGTIME (*AFTER) TRGEVENT (*READ)).