Fixed segfault in default node when inserting very large records; performance improvements