OCL: memory workaround