Maybe just caching the Pathname instance rather than the string is good. Incidentally, there are three separate implementations of `tmpdir` (on Unpacker, LocalTarball and ModuleRelease), and this is the only one that returns a Pathname.