Optimization on load by primary keys