Speed up append

This branch has some attempts to speed up appending data for Issue #1.