Stats are now generated only when needed and at most every 10s.