Improve performance of fetching host attributes.

Bugs closed: AURORA-730

Reviewed at https://reviews.apache.org/r/25815/