Revert "Enable cache for array serializer"

This reverts commit ec36704e81f969b07697bbb7da19aa409628d330.