Use lists instead of environments
Hash environments only if >100 items

Hashing increases the memory footprint of an environment, so
do it only when there is a large number of items.