made getByNames() put results in cache and test cache before hitting mongo.