Have to AddRef() on created functions, else cached object will crash.