Check out DBM::Deep which will allow you to save your hash as a binary file with a very fast lookup.
In reply to Re: save hash to file? by tokpela in thread save hash to file? by Allasso