Define "optimize."
For one, make sure Windows doesn't defrag it. I turn off the defrag scheduler. You do this by going to the properties of the drive by right clicking it under the My Computer icon or hit My Computer from the Start orb. I'm not sure if Windows will defrag a SSD in 7 or not if it detects an SSD. But to be sure I just turn it off anyway.
You'd want to make sure it's aligned. To check this run the program AS SSD and it will look like mine here with everything OK. If it isn't allied read
here Note the AHCI. That too should be on in BIOS, but doing it after the fact is a process. A registry process that is.
Also, you'll want to use the Samsung Magician software to create an over provision space. To get the software, scroll all the way to the bottom of utter useless crap for the download.
Samsung Magician Software | Samsung V-NAND SSD | Samsung Semiconductor Global Website
What ever web master they hired to code that page must have been told to code it so the people that are really, really blind can see it.