Better flushing of cache