Too ugly? Perhaps - beauty is in the eye of the beholder. A "cleaner" way to handle one-time cache setup is by using the singleton object pattern. It's more code, but you won't have to see anything "ugly" in your C::A sub-class.
-sam
Comment on Re^3: CGI::Application under FastCGI (Guru advice needed)