Save init_funcs on a cache file

This patch reduces the time spent looking for the objects' init func by saving them on a tmp file.
Reduces by 4s the build time in my project (~ 450 obj files)