Limits retries to prevent blowing up from invalid localStorage values