Change constants to struct of array

Otherwise we won't be able to read them vectorized.