Transparently perform statistics on IO handles