small performance improvement - put cache flags back