Cache dependency info when building multiple files to speed up bundling