Implement ThreadLocal connections