Improve performance slightly by reusing leveldb iterator until we need to write