Cache tags in files for faster builds

I'm not sure this is the best way to do this but it's sped up my builds by several seconds. Totally open to suggestions for improvement.