optimize of sms fetching