Here is a discussion of persistent server that might be helpful:
Here are some more general performance optimization tips: