added back memoize decorator to _get_price_from_cost