Decode key, before sending it to view