Add support for different realm_key