It's pretty unlikely that ldap searches are making your applications slow, but you can certainly confirm that, by looking at the ldap access logs. Each search result includes "etime", the elapsed time the search took. Units are seconds.
I claim exactly zero expertise in tuning a web server.