Efficiency and security for financial applications with federated learning