Use fast cache dir string replacement method