basic service builder cache thread-safe instance