You can use /dev/shm, which is usually populated with a tmpfs which resides in memory only. Another way would be to use pipes for transferring the data from openssl ... -out /dev/stdout to the desired program using pipes and stdin.
To ensure this data is never written to disk it can be mounted with the noswap optionwith the noswap option, see: https://lwn.net/Articles/925849/available since release 6.4 of the Linux kernel.