Cacheing optimization with array selection