Add optimization to replace CAReduce by their GPU versions.