optimization of Spring data source