Optimizing Reconfigurable Intelligent Surfaces for Small Data Packets: A Subarray Approach