use appropriate cache flags