Create persistence manager with retries (and optimized imports and formatting everywhwere?)