add lru cache for get_amount in  menu open