A persistence segregation API