In SharePoint 2010 we can see Storage Matrix by navigating to below url.
What I am looking for is a way to get the same details with PowerShell or REST. Upon my investigation, I found multiple blogs where I found the similar solution like one mentioned in below link
This solution works but it iterates for all web/subweb/list/folders which takes a lot of time. What I am looking for a solution where I do not have to iterate and can get Storage Matrix through SharePoint or REST API.