OpenCL optimization of PCL functions