Optimize statistics output.