Add transaction to 'read_keys'

* Was missing by mistake
Add const specifiers to locals