Improve setting caching optimization flags
I would like to group all the caching optimization flags into one property, and maybe implement some default configurations that can be easily set, all true -- all false -- caching true soldep false
and using them in some tests would be good!