I have read about SecureString to avoid cleartext storage of sensitive information in memory, to protect against attacks on memory, garbage heap or page file. However based on this post it seems like this is not beneficial in ASP .NET.
I also saw this answer which suggest using an array as this does not have the immutability issues which a System.String has. I considered using a ByteArray instead to store my data. I took a look at the code of the ByteArrayModelBinder but noticed that this is using a string internally before converting to a ByteArray. Per my understanding this is not useful either as it is already written insecurely to memory by the model binder.
What is the best way to handle this securely in ASP .NET MVC? FWIW I understand that an attacker will require significant permissions to perform such an attack however I will have to address this issue.