MDL-47197 core: Private files handler

This issue is a part of the MDL-47194 Task.
This issue is a part of the MDL-39707 Epic.