Get rid of StringBuffer and replace it with StringBuilder. They are used in methods invoked on high frequency, but thread safety is not needed where they were used.