Added USE_CACHE flag