[High Sierra] APFS file system - How to enable TRIM?

What is the easiest/safest way to enable trim for the SATA drives on High Sierra with APFS file system?

Author: @outwork69