get save/restore of values for special case of const working