simplify document iterator
use fixed length keys