in reply to $ENV {'FOO'} $foo

There are two other considerations here that have nothing to do with speed and which contradict one another:

These are mostly maintenance/large program considerations. So if this is a simple script, you can probably disregard them as factors. For large systems I tend to take the approach that hides data sources and manipulations the most since it makes longer term changes easier.