avoid Simple UDF to be serialized