getfullargspec is relatively expensive and the results will not change between calls, so precalculate it outside the wrapper.