Performance enhancements on the API authorisation checks. Around abouts 500ms on my local machine to apply auth to an image list query which is managable for the time being. Will need some further optimisations.