Move this outside this functions scope, so it's not done on every request