APDU abstraction