optimize stats data