Added and used cached versions of fs.lstatSync and  fs.readdirSync to improve application start.