Optimized import queries