All the other solutions that I know about are much more work.
If you have lots if time and want safe and low overhead (server wise at least) you could save the dynamic pages and serve them up statically.
AddType text/html .htm
AddHandler server-parsed .htm
Then use ssi from the html files to call your dynamic stuff:
<!--#include virtual="/cgi-bin/foo.cgi?bar=1&excell=go&etc=you+get+the+picture"-->
That won't get you user passed values, but it can give you some static options.