Redesign table pileups and introduce new meta tables. Create new UDF for insertion to new meta table reference_sequences.