Maintaining global state is easy if you keep it clean. It should contain only those items that are shared across multiple loosely connected components.