optimization for logs with paging