SSDs have come a long way since we all learned to worry about the number of writes we were doing to them.
I'd encourage you to read this page which talks about the fact that the number of writes to the SSD is no longer the main determining factor in the failure rate of SSDs, and that SSDs are now more reliable than spinning disk HDDs. The hardware of SSDs has come a long way:
A joint study between Google and the University of Toronto covering drive failure rates on data servers. The study concluded that the physical age of the SSD, rather than the amount or frequency of data written, is the prime determiner in probability of data retention errors. It also determined that SSD drives were replaced at Google data centers far less often than conventional hard drives, at about a one to four ratio.
That said, there are a couple of things which can reduce writes to SSDs. TRIM is enabled by default in 18.04 which prevents excessive writes when overwriting empty blocks. You can set the
nodiratime options on partitions to prevent writes when you just read files.