GitHub explained in "How We Made GitHub Fast"(2009) [1] they patched their ssh daemon, so that it would do some lookups in a MySQL DB.
I wonder if daemons like OpenSSH now have some kind of plugin mechanism that lets one use their own lookup strategy.