Adds some local caching of expensive path lookups to speed up load times.