Memoize student assignment weights in StudentData.

See #521.