Cache md5hashes to improve performance