Added caching with longname support for windows