Serialize AES key size as int