Check stats only when needed