Thanks for the technical details.
I think I get what you mean (in term of implementation), but can't we just alter the transfer function further so there are more values used for the mid-range colors?
The two-step process you said (the storage is non-linear and is then mapped onto a non-linear) is basically equivalent to a singular transfer function which is the combination of two curves, since the sampling process itself is lossy.