(I only try to improve the speed of the code, so the use of proxy shouldn't be relevant here - I think, I could be wrong).
You might try using Apache::DProf and/or Apache::SmallProf
available here to see where your code is spending its time http://search.cpan.org/~fwiles/Apache-DB