Fix the caching for the generated function pointers.