Backport of #6536: BUG FIX: remove hard-coded use of sqlite file and enable parallel offlin...

...e validation for cosmics