Cache the hashCode.
Initialize the concurrent bag with an initial size.
Refactored SpecializedConcurrentBag for efficiency, moved to util.