work on speeding up fitacflomb calculations.. breakout out calculations which only need to be done once, preparing for cuda