Improved LUTting of functions that
return arrays to avoid an extra copy.