On flexibility, capital structure, and investment decisions for the insured bank