Fix adding redundant IP to cache. Add quick detection to stale IP in cache.