Modified exportClass PII-laden SELECTs to stop using a nested select. Instead, a view is defined as precisely the nested SELECT. That view is used in the main SELECT instead of nesting. Afterwards the view is dropped. Massive speed improvement.