Why not using get here and then check for None? In the common case of the offset already being created, you will avoid a double look up.