Using persistency only if cache is on (Good for web apps)