use less syscalls for appending to assets