Optimize for speed.

Add a similarity cache.
Do not create cluster if the node is isolated.