RC2: speed-ups and CS changes

=== is faster than == and although for a few kb of data the speedup is pretty trivial it really starts to add up when you're doing many MB's of data.