1. A method comprising: receiving a query for a lightweight directory access protocol (LDAP) repository; reorganizing search terms in the query based on a uniqueness value of corresponding LDAP indexes to generate a modified query; and executing the modified query.