calculate the offset for the RPC program number once and store it