Added caching of queue entries, for a nice perf boost