Reuse previously computed values, use more const.