How would you optimize this React component to prevent unnecessary re-renders when live stock data updates?