-
1
In a large bowl, soak the kidney and pinto beans in cold water overnight.
-
2
Soak the black beans overnight in another bowl.
-
3
Drain the two bowls of beans separately and transfer each batch to a large saucepan.
-
4
Add 1 ham hock or piece of bacon to each saucepan.
-
5
Add 2 quarts of the water and 4 cups of the chicken stock to the pinto and kidney beans.
-
6
Add the remaining 1 quart of water and 2 cups of chicken stock to the black beans.
-
7
Bring the beans in the saucepans to a boil, then cover partially and cook over low heat until they are almost tender, about 1 hour for the kidney and pinto beans and 35 minutes for the black beans.
-
8
Drain the beans; reserve the kidney and pinto bean cooking liquid.
-
9
Discard the black bean cooking liquid.
-
10
Remove the meat from the ham hocks and shred; reserve the ham hock fat and 1 bone.
-
11
If using bacon, trim the fat and cut the meat into pieces.
-
12
Reserve the bacon fat.
-
13
Heat a medium cast-iron skillet.
-
14
Add the ancho chiles and toast, pressing down with a spatula until they are fragrant and blistered, about 30 seconds.
-
15
Transfer to a heatproof bowl, cover with boiling water and soak until softened, about 15 minutes.
-
16
Drain and finely chop.
-
17
In a large, enameled cast-iron casserole, cook the ham hock fat or bacon fat in the vegetable oil over moderately high heat until the fat is crisp, about 5 minutes.
-
18
Discard the fat.
-
19
Add the onions, jalapenos, garlic and ancho chiles and cook over moderate heat, stirring occasionally, until softened, about 8 minutes.
-
20
Add the reserved ham or bacon meat and cook, stirring until golden, about 3 minutes.
-
21
Add the barbecue sauce, tomato paste, the reserved ham hock bone and all of the drained beans.
-
22
Stir in 4 cups of the reserved bean cooking liquid and season with salt and pepper.
-
23
Cover and cook over moderately low heat, until the beans are tender and the gravy is thick, about 1 1/2 hours longer; add more of the bean cooking liquid if the beans seem dry.
-
24
Discard the ham hock bone and transfer the beans to a large shallow baking dish or individual crocks.
-
25
Preheat the oven to 425.
-
26
In a medium bowl, toss the cracker crumbs with the cheese.
-
27
Sprinkle the mixture over the beans.
-
28
Bake the gratin for about 25 minutes, or until bubbling and golden.
-
29
Serve with lime wedges.