Some RAID models support TRIM at this point (modern kernel version). I can't find the commit or change log in a few seconds. But this bug confirms it:
https://bugzilla.kernel.org/show_bug.cgi?id=117051 (Very slow discard(trim) with mdadm raid0 array )