`context` is used only in `setBucket`, consider making it local to the function.