You cannot write files to the file-system without actually writing them to a storage device. Note that there are ram-drives that act as storage devices, while keeping the files in memory.
If you just want to lookup some data by a string-key you can just use a Dictionary<string, MemoryStream>
, and while it would be difficult to make access much faster, the data would only be accessible from your process. Another option could be a zip-archive, that kind of works like a dictionary, but also compresses the contents.
I'm really unsure what you mean with "security", whenever talking about security you really need to define what kind of threat you want to protect against. Writing data to disk does not automatically makes it more secure, if anything it would be made less secure since it is much easier to read data from disk than from memory of another process.