Adopt object access optimizations from OMOP branch

Signed-off-by: Stefan Marr <git@stefan-marr.de>