some performance optimisations on random access time in lazy sequences