Tune local read value
Refactor redundant code