Replace inefficient doc-to-hash function

Use the `create` method build into PersistentArrayMap make this
2-3x faster