CLN make cartesian product faster