Removing redundant input from AES