JS: caching static candidates for speed.