Add simple caching for tab completion results.