Added cache flushing on application start when the size is greater than 1 MB.