Improved performance for creating Node