Optimize stats collector