Cleaning up curve search to start partitioning
Cleaning curves to use less memory ops