On RAM should be OK, as long as /tmp/ is used correctly and nothing expects it to survive a reboot. Current RAM uses charges metallically conducted into capacitors, rather than tunnelled through insulating layers and I’ve never seen a cycle count limit on RAM.
Everything that gets written to disk is written to RAM first.