Add new branch and prepare to improve performance in situation of large amount of data.