Improving performance by using a hashmap instead of an ordered map
PageManager can now store its state in multiple pages