Add caching to avoid long wait times on large projects.