optimizations for trsm