Cache standard library functions in upvalues and set _ENV to nil