Use c instead of _DefaultSR to cache sr_ids.

_DefaultSR is a global instance and lives beyond a single request.