Optimal way to iterate over few set of keys

Thank you. :grinning: