Optimization the Connection Manager