Write a documentation on best practices for writing UDFs since there are few gotchas like static variable captures, etc.