Save curve and its value (XXX: code architecture to improve)