Use a global hash instead of an array of hashes