APIGW-675: Refactor repo to use guava table. Also made writing to the table thread safe.