If you want to automatically boost the speed of cleanly(!) written CGI scripts, you should probably have a look at
mod_perl and its
Apache::Registry handler instead. Even for sloppily coded scripts, some gains may be had using the
Apache::PerlRun handler, albeit not as much.
Makeshifts last the longest.