Optimize working with file storage (use async API)