Starting to improve performance of CUDA calculator