setting up cached flag