tools: more intelligent caching for compile _info.