could all these be replaced with a lookup table?

````
res = CL.devices[idx].getDeviceInfo(table[param]);
{{{ makeSetValue('param_value', '0', 'res', 'i32') }}};
size = 1; 
````