Optimized file gestion