#5272: Read object using optionally heap hooks

Implements a heap allocation mechanism for optionally enable personal
memory allocation