Prevent primary key check on cross product