Performance optimizations for data loading