Avoiding redundant instances by using cache.