speed up resolution by not resolving same dependency multiple times