Bucaneer file flusher algorithm