Improve chat log performance