Disable query caching to accent query-related optimizations
Shorten the messages controller by one line
Add database indexes to queried and ordered message columns