SSDs write faster when the drive knows which blocks are free. TRIM tells it.
Unraid has a schedule under Settings, Scheduler, SSD TRIM. Weekly at a quiet hour is a good choice. btrfs on current Unraid also discards in the background, and forum users report that running both does no harm.
To run it once now on a pool:
fstrim -v /mnt/cache
The command prints how much it trimmed. A message that the operation is not supported means that device or its connection does not pass TRIM on.
Array disks do not support TRIM, so SSDs belong in a pool.
Further reading: Unraid docs: cache pools
Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it