add caching grep for spark