Updated router key lookup and file path computation