Implement a ckernel which buffers the inputs of an arrfunc