Add optimized derivative prototype.