file work optimization