Simplified compiler optimisations