Add caching for checking for proxies
Fixes #41