Optimize speed for CMD mode