TRIM Is how your system defragments the SSD and keeps it functioning well. That is the simplest explanation.
By default windows seven and 10 knows how to deal with SSDs and runs Trim on a scheduled basis. And if it doesn’t you can schedule it
Also the drive must be over provisioned properly.