Perf optimization for GPU based LSPI Agent.