OpenCL fix for large datasets