ResourceManagement: use raw pointer to resource data.

Avoid unnecessary copy, which now causes ~1M of additional memory
wasted.