Optimize containers' usage
Replace some QMaps/QSets with vector/array of struct. For a couple of elements, a map/set isn't needed.