Folder Sensor Causing Slow Frontend Loading

I have a folder sensor which I believe is causing my frontend to slow down significantly. Is there a way to optimize this? For example, only include the most recent 10 files or so?

sensor:
  - platform: folder
    folder: www/videos