Optimize lookup value loading in ingestion