sl2: Various minor optimizations