We investigate a control problem leading to the optimal payment of dividends in a Cramér-Lundberg-type insurance model in which capital injections incur proportional cost, and may be used or not, the latter resulting in bankruptcy. For general claims, we provide verification results, using the absolute continuity of super-solutions of a convenient Hamilton-Jacobi variational inequality. As a by-product, for exponential claims, we prove the optimality of bounded buffer capital injections (−a,0,b) policies. These policies consist in stopping at the first time when the size of the overshoot below 0 exceeds a certain limit a, and only pay dividends when the reserve reaches an upper barrier b. An exhaustive and explicit characterization of optimal couples buffer/barrier is given via comprehensive structure equations. The optimal buffer is shown never to be of de Finetti (a=0) or Shreve-Lehoczy-Gaver (a=∞) type. The study results in a dichotomy between cheap and expensive equity, based on the cost-of-borrowing parameter, thus providing a non-trivial generalization of the Lokka-Zervos phase-transition Løkka-Zervos (2008). In the first case, companies start paying dividends at the barrier b*=0, while in the second they must wait for reserves to build up to some (fully determined) b*>0 before paying dividends.