Increase perf of `get_auth_chain_ids` used in state res v2.