Optimizing feature generation.