Describe a scenario where you encountered a bottleneck in a machine learning pipeline and how you resolved it.