Memory reductions for LDAP import