for caching on directories, the snippet @satra has shared could be of great speed up : https://gist.github.com/satra/0e02cd7554672120cf8073df3986f302 and may be would "fix" #19 in that sorting would not be avoidable? ;)