spring: minor size optimizations