Fixed compiling caching bug w.r.t _corrupt_switch and the like