Copy the improved ZIP valid() to the OpenCL version of same format.