Character limitations exceeds in slash command

Character limitations exceeds in slash command

Am working on an extension where we need to add a string which contains more than 4096 characters.  When we try to put the string in the map as a key and printing in chat window in slash command it shows an error.

Error:  The size of the key text has exceeded the 4096 character limit.

Is there any way to overcome this error.