Converted many implicits to value classes. Should increase performance.