SEC: Add 32-bit optimized AES implementation and refactor code to support