Add four bay leaves to the pressure cooker, and close the lid. If you have an automatic pressure cooker, use the setting for beans. Set the timer to 20 minutes. If you have a stovetop pressure cooker, set the heat to high. Once the pressure regulator begins to rock back and forth, begin to measure 20 minutes.
In a small bowl, mix and set aside 1 tsp garlic (or 2 cloves), 2 tbsp onion, and 1 tsp olive oil - you will use this just before the end of the recipe.
Meanwhile, get to work on the "sofrito." In a large skillet, add your remaining olive oil and heat the pan to medium-high heat. Add in the remaining onion, remaining garlic, peppers, oregano, black pepper, and cumin. Stir and saute the vegetables until tender, about 5 minutes. Remove from heat and set aside.
When the 20 minutes have elapsed, remove from heat and use the quick-release method described by your pressure cooker's manufacturer to unseal the pot. Please be very careful at this step!
Using a slotted spoon, test a couple of the beans by removing them and pressing them down with a spoon. They should smash easily, but still have a little bit of firmness to them.
Add your sofrito to your beans and stir to combine the ingredients.
Add in the lime juice and stir.
Add in the salt and sugar, and stir. Adjust salt and sugar if necessary. At this point, the stew will still be watery.
Add in the cilantro, if using.
Cover and seal the lid once more.
If you have an automatic pressure cooker, using the beans setting, set the timer for 5 minutes. If you have a stovetop pressure cooker, set the heat to high. Once the pressure regulator begins to rock back and forth, begin to measure 5 minutes.
When the 5 minutes are up, use the quick release method again and unseal the lid.
Add in the olive oil, garlic, and onion mixture that you set aside earlier.
Using the back of a ladle or serving spoon, mash some of the beans against the side of the pot. Repeat this 4-5 times. This will release some of the bean flavor into the stew and the starch will help it to thicken. If necessary, boil uncovered for a few extra minutes to evaporate excess water.
Serve over white rice and enjoy!