further npksum optimizations (skipping over kernel evaluations once we know the product will be zero)