Best practices: optimizing agent for large amount of small files delivery