Calculate all params once.