Avoid getting database connection when unnecessary
Dropped deserializer reuse
PID generator based on Lucene index