For decoding keys, use a temporary pointer since d2i updates it.