we should to use transaction for get_key instead of dirty