AMBARI-4182. Reduce number of transactions in HostResourceProvider, HostComponentResourceProvider. (odiachenko)