These four functions that interact with a host_keys file could easily be grouped into a nice little KnownHostsFile class...