Speed improvement

credit to:
Arnav Gosain <nolinuxnoparty@gmail.com>
pcarenza <pcarenza@gmail.com>
Chester Kener <Cl3Kener@gmail.com>
Chet Kener <Cl3Kener@gmail.com>
ctfrommn