Only seek when necessary

Thanks to CyborgDE for the suggestion.
Faster array copy

Thanks to CyborgDE for the suggestion.