various improvements to AES encryption process (to be finished)