Application of Bayesian optimization to BtA injection at BNL | Synapse