a RAM disk is not only faster, it can also help to reduce the write accesses to SD cards. The RAM disk is created as follows:
As root you open the file: /etc/fstab
and enter the following line:
tmpfs /tmp tmpfs nodev,nosuid,size=25M,mode=1777 0 0
Now you have a 25MB partition in RAM and the SD card is spared.
After the entry please reboot.
Instead of /tmp you can use any other directory. Instead of 25M another size can be specified. It is to be considered that this size is taken from the main memory.