Added more memory for java and reduce load on database call