Optimized the process of initing data