Code optimisation - make float array into a static field