[client][managed][offline] Implement true upsert