MINOR: Improve scEnDeCryptInplace Implementation