core: Add private global data interface. #3915