RC4: speedups

Replaces https://github.com/phpseclib/phpseclib/pull/372