Optimized file selection