Performance enhancement for persisting entities, use private context for persistence operation