Perl module that implements authentication caching