I know what the trim command does. My Test I had an Intel 120 with low read and write speeds so as test I defragmented the SSD twice to see what happened. Same issues as you are having and TRIM would not repair the SSD. I wiped and reformatted, fresh install and it worked OK again. The thing that I would be trying right now is to increase your Virtual Memory to 1.5 times your installed Ram and see if that helps. You could be running out of Virtual Memory as well.