Refactored the code to reduce CPU usage by reading data by batch