refactor ingest validation to reduce object loading