AMBARI-6306 API: filtering operations are slow (more than 40 seconds) on 2k-node cluster (dsen)