Initialize index once on #bind and #partial

This should also boost the speed slightly, just one of the few things I've come across.