PERF: moved performance calculation out of inner loop

lazy loading for portfolio
less repeating in performance period updates