PR commit for adding support for degree 1 curves

You need to back this change with performance tests. Otherwise please revert it.