Optimize to win CPU usage and time execution (win 15%)