Refactor connections cache key