Refactoring: Replace s:GetSID() with a cached s:SID value.

As the script's SID is fixed, it needs to be determined only once during sourcing. Remove the version-dependent algorithm that is using maparg(), as this won't work during sourcing. This makes the script simpler and more robust by trading one persisted Integer for runtime function calls.