This should be constant time to avoid container enumeration.