o Refactor opengpg utility functions implementation so it uses a context manager.