Precompute part of expensive multiplication