It trades a small amount of memory (the Set object and the Hash that backs it) for O(1) lookup time. TBH it's probably not a big deal, as with most things in Chef, since 99% (probably) of your runtime is IO and waiting on other utilities but it was easy to do, so why not?