channels/smartcard: unpacking improvements