Fixed permissions for keys get and payload decoding for put.
Fixed permission bug