Enhence cacheSolve functio to get consistent result