Doesn't it work if you put `@inbounds` on the whole function or block of code?