Various improvements to native cipher so that it now actually destroys Java in terms of speed. Closes #871 - thanks @ninja-