Refactored filings loader to use more compact temporary table statements with indexes