Add "lock" functionality to keep FileDatas in memory