optimization: only process new log statements