SM optimizations