Pickling stats data to reduce database requests