in reply to Memory utilization and hashes
You could use a database (like SQLite).
Upd: Woops, I just noticed someone already suggested this.