Better key representation when logging