Made the time_to_respond_stats API endpoint a bit more performant