Use include_lib instead of include where it makes sense.
Move call to get_authority so it is only invoked when needed.
Reorganize so read operations are grouped.