optimized opencl kernel