If your boss insists on using a hash to access these key value pairs you could always create a hash that is tied to the database. (look at Tie::RDBM) Did your boss give you any reasons for wanting you to do this?
Comment on Re: Stashing DB Key/Value Pairs in Perl Modules