in reply to Opcodes and Interpreters...

I think you are thinking about this problem at too low a level and need to look at a CGI caching module such as (you guessed it!) CGI::Cache.