Reacting to key type change from string to byte[]