Management of in-memory objects