In other words:

    records(:by_mac)[mac.downcase]