Improve file operations