some aes-cm performance improvements