Index live and dead endpoints by host id. It also allows to simplify some code that does a translation.