in reply to Passing arguments

Just use an undef for the second parameter: $sth = $dbh->prepare_cached($statement, undef, $allow_active);