improved next encryption selection