Storing statistic results
Data duplication as your are proposing is certainly not illegal.  You can do what you like with your data.

You need to weigh the benefits of having the statistic statically stored and using up storage space, or having to calculate it each time.