Issue #2441 add local pointer to reduce read  times