Is there a safer way to Cycle Through Post Data in Craft
I wouldn't consider it as good practice to do what you want, there are good reasons why something like this is not possible by default and why all functions to get all parameters are private.

A better way is to send your parameters inside an array and fetch this or you can create an array of all possible parameters and loop it

$secureParameters = ['A', 'B', 'C'];
$request = Craft::$app-&gt;getRequest();
$values = [];
foreach($secureParameters as $key){
    $values[$key] = $request-&gt;getBodyParam($key);
}


If you really don't care about receiving unexpected parameters and raising exceptions you can also loop your $_POST directly foreach($_POST as $key =&gt; $v){ and fetch the $request-&gt;getBodyParam($key) at least