Safer usage of 5bit register class