Sparse identification of nonlinear dynamics with library optimization mechanism: Recursive long-term prediction perspective