LDAP optimization using connection pool