Stop pickling function upvalues for performance concerns