in reply to storable: too slow retrieval of big file.

You could nearly halve the time by not dereferencing the hash (which is causing the entire hash to be copied), ie
$dict = retrieve("hash.txt");

Dave.