cache SID result in s:SID function

fixes issue [https://github.com/luke-gru/riml/issues/24]