KNOX-403: Optimize KnoxLdapRealm to reduce number of ldapsearches