I've got a fairly complex CGI script - a search engine that searches both html files in a directory, plus tables in a database. In any event, it turns out it takes up lots of server memory when it runs, and I'm looking for ways to have it not be such a hog. Are there easy ways to "nice" CGI scripts, or do I just really need to go through the code and find better ways to do what it is I need done?