the first thing to do would be to remove the UI control, this is not needed when used in conjunction with pots, then you use a 'hook inlet' , to tell it the hook state has changed - you could also use a int8_t for the state variables, which will save a bunch more.
from there, gets more complex, you could create an object which has many hooks in one object, assuming a/b are global to them all. by doing this there are various optimisations you can make - e.g. combining the states into 2 bit variables, one hook/unhook inlet.
anything is possible, can you describe this better, ive not played with this in Live.
are you talking about what the manual calls "Value Scaling" mode?
(i thought relative, was the mode used by encoders, were it sends changes rather than absolute values)