ui: reduce memory consumption when serving log files