use SplFixedArray when inserting documents