New header hash map implementation to try and fix the memory leaks.