implement a maximum on persistent storage to avoid flooding iPhones