Updated version; added capability for cache to set preference on creating paths if they do not exist already; removed unnecessary code