Small optimisations for inline code