The code only calls this with a `container` which is a single row.  Caching would probably not be worth the cost of added complexity/memory.

Perhaps a comment that this function can get expensive with large containers and broad selectors?