performance optimization in React.js stores