undoing this as it seems to be causing deadlocks
get the apiKey only once