moves cache storage until after the post_compile hook.