SIO-1432 Better statistics permission handling

Change-Id: I4638de423fdd65ca43744ef1c442486769348185
Merge "SIO-1432 Better statistics permission handling"