Jkarni/feature/middleware locked assets

Reviewers: @cahrens @dmitchell