[PATCH 2/5] reg: Only call get_long_key() when operations require it