implement better message bubble size caching in layout for scrolling performance. #492