Optimizations to CPU version of GBSA