First, make sure you're using the latest version: https://wyday.com/limelm/api/
https://wyday.com/limelm/help/faq/#latest-libs
Next, if you have very slow hard drives connected (or broken SD cards) then the first time this function is run in a process it can take longer. The solution: unplug slow SD cards.