using lodash and lru cache