Optimize the BbkUpload generate when sketching