Micro optimisations on response building