The efficiency and stability of banks and markets