Small micro-optimization for datastructures