core: replace abusive shared_ptr
In read-only context, replace shared pointers by raw pointers.
For class members of shared_ptr type, investigate whether it is possible to substitute the base type.
Also consider replacing sptrData
by a global pointer gSession
.