More optimizations
More micro-optimizations
Cache the before/after masks
Shorts.bitCount