Using UDF and WASM for a specific use case, internal LWT