Implement one-array optimization for CM