If this implementation is pretty close to the lscache code you mentioned in the Jira ticket, would it make sense to have a comment here referencing and linking to that implementation? It might prove useful to someone else looking at this code in the future.