Track dirty markets as a set of pairs rather than a map