Rewrite for getObject/getBuffer and putObject/putBuffer API