Memoise the Publishing API client

This saves having to instantiate it in several places.