add size and cache a subset of function pointers in libmx