Optimize implementation of ShopStatisticServer.