Suggest moving all of this to the "flags" file and defining a ReadAuthorizedKeysFile(...) method that returns an array of keys or error.