Speed up document saving